import request from '@/utils/request'

// 查询监督检查列表
export function listJdjc(query) {
  return request({
    url: '/yqhs/jdjc/list',
    method: 'get',
    params: query
  })
}

// 查询监督检查详细
export function getJdjc(id) {
  return request({
    url: '/yqhs/jdjc/' + id,
    method: 'get'
  })
}

// 新增监督检查
export function addJdjc(data) {
  return request({
    url: '/yqhs/jdjc',
    method: 'post',
    data: data
  })
}

// 修改监督检查
export function updateJdjc(data) {
  return request({
    url: '/yqhs/jdjc',
    method: 'put',
    data: data
  })
}

// 删除监督检查
export function delJdjc(id) {
  return request({
    url: '/yqhs/jdjc/' + id,
    method: 'delete'
  })
}
